<%layout("/common.html"){%>
<div class="box-header with-border">
	<div class="box-title">
		<i class="fa fa-user-o" style="font-size:12px;color:#6495ED;padding:0px 7px 0px 5px;"></i>
		<i style="font-size:16px">编辑固定资产</i>
		<li class="long-gray-underline"></li>
	</div>
	<div class="box-title">
		<i class="font-italic" style="font-size:15px;color:#1e5edb;padding:0px 7px 0px 26px;">基本信息</i>
		<div class="box-tools pull-right">
			<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
		</div>
		<li class="short-gray-underline"></li>
	</div>
</div>
<div class="form-content">
	<div class="form-horizontal" id="form">
		<input type="hidden" id="id" value="${storage.id}">
		<input type="hidden" id="deptId" value="">
		<input type="hidden" id="parentId">
		<input type="hidden" id="businessId" name="businessId" value="${flowable.businessId}"/>
        <input type="hidden" id="taskId" name="taskId" value="${flowable.taskId}"/>
        <input type="hidden" id="taskName" name="taskName" value="${flowable.taskName}"/>
        <input type="hidden" id="taskDefKey" name="taskDefKey" value="${flowable.taskDefKey}"/>
        <input type="hidden" id="formId" name="formId" value="${flowable.formId}"/>
        <input type="hidden" id="modelVersion" name="modelVersion" value="${flowable.modelVersion}"/>
        <input type="hidden" id="procInsId" name="procInsId" value="${flowable.procInsId}"/>
        <input type="hidden" id="procDefId" name="procDefId" value="${flowable.procDefId}"/>
        <input type="hidden" id="modelKey" name="modelKey" value="${flowable.modelKey}"/>
		<div class="row">
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">资产编号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assCode" value="${storage.assCode}"/>
		                    
					</div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">* 资产名称：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assDeviceName" class="required" value="${storage.assDeviceName}"/>
					</div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">* 申请金额：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="amount" type="number" class="required" value="${storage.amount}"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">资产分类：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assType" iconClass="btn-input-search" icon="fa-search" value="${storage.assType}" onclick="addParentLayer('/role/tree/','分类选择树')"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">资产性质：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assBudget" value="${storage.assBudget}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">品牌：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assBrand" value="${storage.assBrand}"/>
	                </div>
                </div>
            </div>
		</div>
		
		
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">使用日期：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assStartDate" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">购置日期：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assPayTime" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">资产型号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assSpeType" value="${storage.assSpeType}"/>
	                </div>
				</div>
			</div>
		</div>
		
		<!-- 第四行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">资产数量：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assCount" value="${storage.assCount}"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">供应商：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="pmsSupplierName" value="${storage.pmsSupplierName}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">详细地点：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assLocation" value="${storage.assLocation}"/>
	                </div>
				</div>
			</div>
		</div>
		
		<!-- 第五行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">使用年限：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assUseLife" value="${storage.assUseLife}"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">生产厂商：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assManufacturer" value="${storage.assManufacturer}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">存放地点：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assPlace" value="${storage.assPlace}"/>
	                </div>
				</div>
			</div>
		</div>
		
		<!-- 第六行 -->
		<div class="row">			
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">序列号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assSerial" value="${storage.assSerial}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">来源方式：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assDeviceOriginType" value="${storage.assDeviceOriginType}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">保修截止日期：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assWarExpirationDate" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
	                </div>
				</div>
			</div>
		</div>
		
		<!-- 第七行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">批次号：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assBatch" value="${storage.assBatch}"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">验收单号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="pmsAcceptNumber" value="${storage.pmsAcceptNumber}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">计量单位：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assUtil" value="${storage.assUtil}"/>
	                </div>
				</div>
			</div>
		</div>
		
		<!-- 第八行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">原资产编码：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assOriginalCode" value="${storage.assOriginalCode}"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">录入日期：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assEnteringDate" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">录入人：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assEntry" value="${storage.assEntry}"/>
	                </div>
				</div>
			</div>
		</div>
		
		<div class="box-title">
			<i class="font-italic" style="font-size:15px;color:#1e5edb;padding:0px 7px 0px 26px;">管理信息</i>
			<li class="short-gray-underline"></li>
		</div>
		
		<!-- 第一行 -->
		<div class="row">			
			
			
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">资产用途：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assUsed" value="${storage.assUsed}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">使用类型：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assUseType" value="${storage.assUseType}"/>
	                </div>
				</div>
			</div>
		</div>
		
		<!-- 第二行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">使用部门：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
	                	<input type="hidden" id="pmsPurDepartCode"/>
	                	<#form:input id="pmsPurDepartName" value="${storage.pmsPurDepartName}" iconClass="btn-input-search" icon="fa-search" onclick="addParentextendLayer('/department/tree/','pmsPurDepartCode','pmsPurDepartName','2','使用部门选择树')"/><!-- 当前获取的是广东公司部门，如若获取全部将2换成0，如若获取河北公司id是4;天津公司id是20;广东公司id是2 -->
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">使用人：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assCustodiansCode" value="${storage.assCustodiansCode}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">资产账套：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assAccount" value="${storage.assAccount}"/>
	                </div>
				</div>
			</div>
		</div>
		
		
		<!-- 第三行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">发票日期：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assInvoiceDate" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">发票号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assInvoiceNo" value="${storage.assInvoiceNo}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">报废日期：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assScrapDate" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
	                </div>
				</div>
			</div>
		</div>
		
		
		<!-- 第四行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">入账日期：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="emsRecordedDate" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">入账编号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="emsMarkId" value="${storage.emsMarkId}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">预算部门：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<!-- <#form:input id="assBudgetDepartment" value="${storage.assBudgetDepartment}"/> -->
						<input type="hidden" id="assBudgetDepartmentCode"/>
	                	<#form:input id="assBudgetDepartment" value="${storage.assBudgetDepartment}" iconClass="btn-input-search" icon="fa-search" onclick="addParentextendLayer('/department/tree/','assBudgetDepartmentCode','assBudgetDepartment','4','预算部门选择树')"/><!-- 当前获取的是河北公司部门，如若获取全部将4换成0，如若获取河北公司id是4;天津公司id是20;广东公司id是2 -->
	                </div>
				</div>
			</div>
		</div>
		
		<!-- 第五行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">使用类别：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assUseCategory" value="${storage.assUseCategory}"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">产品线：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assProductLine" value="${storage.assProductLine}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">资产状态：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assSituationName" value="${storage.assSituationName}"/>
	                </div>
				</div>
			</div>
		</div>
		
		
		<!-- 第六行 -->
		<div class="row">			
			<div class="col-xs-4">
                <div class="input-group">
	                <label class="control-label col-sm-4" title="">项目名称：<i class="fa icon-question hide"></i>
					</label>
	                <div class="col-sm-8">
		                <#form:input type="text" id="assProjectName" value="${storage.assProjectName}"/>
	                </div>
                </div>
            </div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">资金来源：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assSource" value="${storage.assSource}"/>
	                </div>
				</div>
			</div>
			<div class="col-xs-4">
				<div class="input-group">
					<label class="control-label col-sm-4" title="">备注：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="assRemarks" value="${storage.assRemarks}"/>
	                </div>
				</div>
			</div>
		</div>
		<!-- 第七行 -->
		<div class="row">
			<div class="col-xs-12">
				<div class="input-group">
					<label class="control-label col-sm-4" >
						 审批意见：<i class="fa icon-question hide"></i>
					</label>
					<div class="col-sm-8">
						<textarea class="input-xxxlarge" name="comment" id="comment"></textarea>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	
	<div class="row">
		<div class="button">
			<#form:button class="btn btn-info" name="暂存" id="submit" icon="fa-check" onclick="submitPage('/assStorage/edit?isAgree=0')"/>&nbsp;
			<% if(flowable.status == 'todo'){ %>
				<% if(flowable.hasUnAuditPassFlow){ %>
					<#form:button class="btn btn-info" name="重发流程" id="submit" icon="fa-check" onclick="submitPage('/assStorage/edit')"/>
					<#form:button class="btn btn-info" name="结束流程" id="submit" icon="fa-check" onclick="submitPage('/assStorage/edit')"/>
				<% } else { %>
					<#form:button class="btn btn-info" name="同意" id="submit" icon="fa-check" onclick="submitPage('/assStorage/edit?isAgree=1')"/>&nbsp;
					<#form:button class="btn btn-info" name="驳回" id="submit" icon="fa-check" onclick="addLayerCustom('/flowableOffice/back?taskId=${flowable.taskId}&procInsId=${flowable.procInsId}&modelKey=${flowable.modelKey}', '驳回','560','350')"/>
					<#form:button class="btn btn-info" name="前加签" id="submit" icon="fa-check" onclick="addLayerCustom('/flowableOffice/beforeAddSign?taskId=${flowable.taskId}&procInsId=${flowable.procInsId}', '前加签','560','350')"/>&nbsp;
					<#form:button class="btn btn-info" name="后加签" id="submit" icon="fa-check" onclick="addLayerCustom('/flowableOffice/afterAddSign?taskId=${flowable.taskId}&procInsId=${flowable.procInsId}', '后加签','560','350')"/>&nbsp;
					<#form:button class="btn btn-info" name="转办" id="submit" icon="fa-check" onclick="addLayerCustom('/flowableOffice/transfer?taskId=${flowable.taskId}&procInsId=${flowable.procInsId}', '转办','560','350')"/>&nbsp;
					<#form:button class="btn btn-info" name="委派" id="submit" icon="fa-check" onclick="addLayerCustom('/flowableOffice/delegate?taskId=${flowable.taskId}&procInsId=${flowable.procInsId}', '委派','560','350')"/>
				<% } %>
			<% } %>
			<#form:button class="btn btn-default" name="关闭" id="cancel" icon="fa-mail-reply-all" onclick="closePage()"/>
		</div>
	</div>
</div>
<script type="text/javascript" src="${ctxPath}/js/flowable/demo/storage/assStorage.js"></script>
<%}%>
